﻿@using EC.Entity.Response.Merchant
@model EC.Entity.PagedList<MerchantQueryResponse>
<div class="data-body data-scroll">
    <div class="data-view">
        <div class="data-div-view table-responsive">
            <table class="table table-hover table-striped table-bordered">
                <thead>
                    <tr>
                        <th class="t_l">商户名称</th>
                        <th class="t_l wd75">存款余额</th>
                        <th class="t_l wd75">存款冻结</th>
                        <th class="t_l wd75">付款汇率</th>
                        <th class="t_l wd75">存款汇率</th>
                        <th class="t_l wd75">内充汇率</th>
                        <th class="t_l wd75">单笔支付</th>
                        <th class="t_l wd75">结算</th>
                        <th class="wd75 t_c">充值</th>
                        <th class="wd110 t_c">充值(带手续费)</th>
                        <th class="t_c wd75">扣减余额</th>
                        <th class="wd75 t_c">冻结余额</th>
                    </tr>
                </thead>
                <tbody>
                    @if (Model != null && Model.TData != null && Model.TData.Any())
                    {
                        foreach (var item in (IEnumerable<MerchantQueryResponse>)Model.TData)
                        {
                    <tr>
                        <td class="t_l">@(item.Name)</td>
                        <td class="t_l wd75">@(item.DepositBalance)</td>
                        <td class="t_l wd75">@(item.DepositFrozenBalance)</td>
                        <td class="t_l wd75">@(item.PaymentRate)</td>
                        <td class="t_l wd75">@(item.DepositRate)</td>
                        <td class="t_l wd75">@(item.PaymentRate)</td>
                        <td class="t_l wd75">@(item.PaymentSingle)</td>
                        <td class="t_l wd75">
                            @(item.SettleSingle)
                        </td>
                        <td class="t_c wd75">
                            <button type="button" class="btn btn-default btn-xs" data-modal="/Merchant/Recharge?id=@(item.Id)" data-title="充值" data-width="450" data-height="200">
                                充值
                            </button>
                        </td>
                        <td class="t_c wd110">
                            <button type="button" class="btn btn-default btn-xs" data-modal="/Merchant/RechargeFee?id=@(item.Id)" data-title="充值(带手续费)" data-width="450" data-height="200">
                                充值(带手续费)
                            </button>
                        </td>
                        <td class="t_c wd75">
                            <button type="button" class="btn btn-default btn-xs" data-modal="/Merchant/LessBalance?id=@(item.Id)" data-title="扣减余额" data-width="450" data-height="200">
                                扣减余额
                            </button>
                        </td>
                        <td class="wd75 t_c">
                            <button type="button" class="btn btn-default btn-xs" data-modal="/Merchant/FrozenBalance/@(item.Id)" data-title="冻结余额" data-width="400" data-height="200">
                                冻结余额
                            </button>
                        </td>
                    </tr>
                        }
                    }
                    else
                    {
                        <tr>
                            <td colspan="3" class="t_c">暂无记录</td>
                        </tr>
                    }
                </tbody>
            </table>
        </div>
    </div>
</div>
<!-- 必要的分页参数设置 -->
<input type="hidden" id="TotalCount" value="@(Model != null ? Model.TotalCount : 0)" />